<?php
$this->pageTitle=Yii::app()->name . ' - Ajax_test';
$this->breadcrumbs=array(
	'Ajax_testt',
);
$request=Yii::app()->request;

?>

<h1>Kontroler NaukaTest Akcja Ajax_test</h1> 



<h2>Quote of the day</h2>
<div id="quote-of-the-day">
<?php 
	$cytat['quote']=$this->quote;
	$this->renderPartial('_quote',$cytat)
?>
</div>
<?php echo CHtml::ajaxLink('Next quote', array('getQuote'),
array('update' => '#quote-of-the-day'));

//echo CHtml::ajaxLink('Next quote', array('getQuote'),
//array('success' => 'js:function(data){
//alert(data);
//}'))

/*
 * <script type="text/javascript">
/*
jQuery(function($) {
jQuery('body').delegate('#yt0','click',function(){
78
jQuery.ajax({
'url':'/quote/getQuote',
'cache':false,
'success':function(html){
jQuery("#quote-of-the-day").html(html)
}
});
return false;
});
});
</script>
 */

?>